home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d16 / nodee1a.arc / SOURCE.ARC / NODCHILD.H < prev    next >
C/C++ Source or Header  |  1991-09-20  |  2KB  |  126 lines

  1.     #ifndef __NODCHILD_H
  2.  
  3.     #define __NODCHILD_H
  4.  
  5. /* get the other files which we need */
  6.  
  7.     #if !defined( __WINDOWS_H )
  8.     #include <Windows.h>
  9.     #endif
  10.  
  11.     #ifndef __CLASSWIN_H
  12.     #include "classwin.h"
  13.     #endif
  14.  
  15.     #ifndef __NOD1_H
  16.     #include "nod1.h"
  17.     #endif
  18.  
  19.     #ifndef __DIR_H
  20.     #include <dir.h>
  21.     #endif
  22.  
  23.     class DBox:public Child
  24.     {
  25.     public:
  26.         void create(HWND);
  27.         void set(BOOL);
  28.     };
  29.  
  30.     class GoButton:public Child
  31.     {
  32.     public:
  33.         void create( HWND );
  34.  
  35.     private:
  36.         char *text;
  37.  
  38.  
  39.     };
  40.  
  41.     class FirstLine:public Child
  42.     {
  43.     public:
  44.         void create(HWND);
  45.         void set(char*);
  46.  
  47.     private:
  48.         char *text;
  49.  
  50.     };
  51.  
  52.  
  53.     class FileList : public Child
  54.     {
  55.     public:
  56.         virtual void create(HWND);
  57.         BOOL validFile(void);
  58.         DWORD send(WORD,WORD,long);
  59.         virtual BOOL fileClick(void);
  60.         char* getFile(void);
  61.         void reset(void);
  62.         void mask(char *);
  63.  
  64.     private:
  65.         char szFileName[MAXPATH];
  66.         char szMask[MAXFULLFILE];
  67.         BOOL bValidFile;
  68.     };
  69.  
  70.     class DirList : public Child
  71.     {
  72.     public:
  73.         virtual void create(HWND);
  74.         virtual BOOL dirClick(void);
  75.         char getDir(void);
  76.         void reset(void);
  77.         DWORD send(WORD,WORD,long);
  78.  
  79.     private:
  80.         HWND hDirField;
  81.         char szDirName[MAXPATH];
  82.     };
  83.  
  84.  
  85. /*
  86. class FileFinder
  87.  
  88. functions:
  89.  
  90.     create(HWND parent) -
  91.  
  92.     reset()  - update display (used when APPACTIVATE occurs)
  93.  
  94.     dirClick - user clicked on directory box (overidden from base class)
  95.  
  96. inherited
  97.  
  98.     fileClick -
  99.     validFile -
  100.     getFile
  101.  
  102.     getDir -
  103.  
  104. conflicting inherited functions
  105.  
  106.     send- does nothing - covers underlying functions
  107.  
  108. BUGS:
  109. If the user does a dirClick and then attempts to check the ValidFile
  110. status, an incorrect result may return.  The FileName will still be
  111. set to the file in the previous directory.
  112.  
  113. */
  114.  
  115.     class FileFinder:public DirList , public FileList
  116.     {
  117.     public:
  118.         void create(HWND);
  119.         void reset(void);
  120.         BOOL dirClick(void);
  121.         void send(void);
  122.  
  123.     private:
  124.     };
  125.  
  126.     #endif